<%@page import="com.entity.UserInfo"%>
<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/admin/do/checklogin.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>标题页面</title>
    
	<meta charset="UTF-8">
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
		.herder-div-title{
			width: 100%;
			height: 80px;
			margin: 0px auto;
		}
		h1{
			width: 600px;
			float: left;
			margin-left: 30px;
			font-family: "Microsoft YaHei UI";
		}
		.herder-div-title>span{
			margin: 30px 5px;
			float: right;
		}
		#loginout{
			text-decoration: none;
		}
		#loginout:hover{
			color:red;
			text-decoration: underline;
		}
	</style>
	<script>
		function isLoginOut(){
			if(confirm("你确定要退出吗？")){
				parent.location="/myweb2/doLoginOut";
			}
		}
	</script>
  </head>
  
  <body>
   	<div class="herder-div-title">
   		<h1 style="text-shadow: 10px -2px 10px #dcdcdc;">后台管理系统</h1>
   		<span>管理员：<%=((UserInfo)session.getAttribute("loger")).getUname() %>&nbsp;&nbsp;&nbsp;&nbsp;<a id="loginout" href="javascript:isLoginOut()">退出</a></span>
   	</div>
  </body>
</html>
